const mutations = {
  setToken(state, token) {
    state.token = token
  },
  setUser(state, user) {
    state.user = user
  },
  reset(state) {
    state.user = {}
    state.token = ''
  }
}

export default mutations
